package com.gton.person.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @program: PersonalDesign
 * @description: 权限表
 * @author: GuoTong
 * @create: 2020-11-17 12:47
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Role对象", description="权限表")
public class Role implements Serializable {

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)//数据库主键自增
    private Integer id;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "用户ID")
    private Integer sid;
}
